Optimal. Leaf size=393 \[ -\frac {2 a^2}{c e \sqrt {e x} \sqrt {c+d x^2}}-\frac {\left (b^2 c^2-2 a b c d+3 a^2 d^2\right ) (e x)^{3/2}}{c^2 d e^3 \sqrt {c+d x^2}}+\frac {\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) \sqrt {e x} \sqrt {c+d x^2}}{c^2 d^{3/2} e^2 \left (\sqrt {c}+\sqrt {d} x\right )}-\frac {\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{c^{7/4} d^{7/4} e^{3/2} \sqrt {c+d x^2}}+\frac {\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{2 c^{7/4} d^{7/4} e^{3/2} \sqrt {c+d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 393, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {473, 468, 335,
311, 226, 1210} \begin {gather*} \frac {\left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} \left (3 a^2 d^2-2 a b c d+3 b^2 c^2\right ) F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{2 c^{7/4} d^{7/4} e^{3/2} \sqrt {c+d x^2}}-\frac {\left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} \left (3 a^2 d^2-2 a b c d+3 b^2 c^2\right ) E\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{c^{7/4} d^{7/4} e^{3/2} \sqrt {c+d x^2}}-\frac {(e x)^{3/2} \left (3 a^2 d^2-2 a b c d+b^2 c^2\right )}{c^2 d e^3 \sqrt {c+d x^2}}+\frac {\sqrt {e x} \sqrt {c+d x^2} \left (3 a^2 d^2-2 a b c d+3 b^2 c^2\right )}{c^2 d^{3/2} e^2 \left (\sqrt {c}+\sqrt {d} x\right )}-\frac {2 a^2}{c e \sqrt {e x} \sqrt {c+d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 226
Rule 311
Rule 335
Rule 468
Rule 473
Rule 1210
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^2}{(e x)^{3/2} \left (c+d x^2\right )^{3/2}} \, dx &=-\frac {2 a^2}{c e \sqrt {e x} \sqrt {c+d x^2}}+\frac {2 \int \frac {\sqrt {e x} \left (\frac {1}{2} a (2 b c-3 a d)+\frac {1}{2} b^2 c x^2\right )}{\left (c+d x^2\right )^{3/2}} \, dx}{c e^2}\\ &=-\frac {2 a^2}{c e \sqrt {e x} \sqrt {c+d x^2}}-\frac {\left (b^2 c^2-2 a b c d+3 a^2 d^2\right ) (e x)^{3/2}}{c^2 d e^3 \sqrt {c+d x^2}}-\frac {\left (2 a b-\frac {3 b^2 c}{d}-\frac {3 a^2 d}{c}\right ) \int \frac {\sqrt {e x}}{\sqrt {c+d x^2}} \, dx}{2 c e^2}\\ &=-\frac {2 a^2}{c e \sqrt {e x} \sqrt {c+d x^2}}-\frac {\left (b^2 c^2-2 a b c d+3 a^2 d^2\right ) (e x)^{3/2}}{c^2 d e^3 \sqrt {c+d x^2}}-\frac {\left (2 a b-\frac {3 b^2 c}{d}-\frac {3 a^2 d}{c}\right ) \text {Subst}\left (\int \frac {x^2}{\sqrt {c+\frac {d x^4}{e^2}}} \, dx,x,\sqrt {e x}\right )}{c e^3}\\ &=-\frac {2 a^2}{c e \sqrt {e x} \sqrt {c+d x^2}}-\frac {\left (b^2 c^2-2 a b c d+3 a^2 d^2\right ) (e x)^{3/2}}{c^2 d e^3 \sqrt {c+d x^2}}+\frac {\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {c+\frac {d x^4}{e^2}}} \, dx,x,\sqrt {e x}\right )}{c^{3/2} d^{3/2} e^2}-\frac {\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) \text {Subst}\left (\int \frac {1-\frac {\sqrt {d} x^2}{\sqrt {c} e}}{\sqrt {c+\frac {d x^4}{e^2}}} \, dx,x,\sqrt {e x}\right )}{c^{3/2} d^{3/2} e^2}\\ &=-\frac {2 a^2}{c e \sqrt {e x} \sqrt {c+d x^2}}-\frac {\left (b^2 c^2-2 a b c d+3 a^2 d^2\right ) (e x)^{3/2}}{c^2 d e^3 \sqrt {c+d x^2}}+\frac {\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) \sqrt {e x} \sqrt {c+d x^2}}{c^2 d^{3/2} e^2 \left (\sqrt {c}+\sqrt {d} x\right )}-\frac {\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} E\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{c^{7/4} d^{7/4} e^{3/2} \sqrt {c+d x^2}}+\frac {\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{2 c^{7/4} d^{7/4} e^{3/2} \sqrt {c+d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 10.10, size = 126, normalized size = 0.32 \begin {gather*} \frac {x \left (-3 b^2 c^2 x^2+6 a b c d x^2-3 a^2 d \left (2 c+3 d x^2\right )+\left (3 b^2 c^2-2 a b c d+3 a^2 d^2\right ) x^2 \sqrt {1+\frac {d x^2}{c}} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-\frac {d x^2}{c}\right )\right )}{3 c^2 d (e x)^{3/2} \sqrt {c+d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 594, normalized size = 1.51
method | result | size |
elliptic | \(\frac {\sqrt {e x \left (d \,x^{2}+c \right )}\, \left (-\frac {x^{2} \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )}{d e \,c^{2} \sqrt {\left (x^{2}+\frac {c}{d}\right ) d e x}}-\frac {2 \left (d e \,x^{2}+c e \right ) a^{2}}{c^{2} e^{2} \sqrt {x \left (d e \,x^{2}+c e \right )}}+\frac {\left (\frac {b^{2}}{e d}+\frac {a^{2} d^{2}-2 a b c d +b^{2} c^{2}}{2 d \,c^{2} e}+\frac {d \,a^{2}}{c^{2} e}\right ) \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \left (-\frac {2 \sqrt {-c d}\, \EllipticE \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d}+\frac {\sqrt {-c d}\, \EllipticF \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d}\right )}{d \sqrt {d e \,x^{3}+c e x}}\right )}{\sqrt {e x}\, \sqrt {d \,x^{2}+c}}\) | \(327\) |
risch | \(-\frac {2 a^{2} \sqrt {d \,x^{2}+c}}{c^{2} e \sqrt {e x}}+\frac {\left (\frac {\left (a^{2} d^{2}+b^{2} c^{2}\right ) \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \left (-\frac {2 \sqrt {-c d}\, \EllipticE \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d}+\frac {\sqrt {-c d}\, \EllipticF \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d}\right )}{d^{2} \sqrt {d e \,x^{3}+c e x}}-\frac {c \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) \left (\frac {x^{2}}{c \sqrt {\left (x^{2}+\frac {c}{d}\right ) d e x}}-\frac {\sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \left (-\frac {2 \sqrt {-c d}\, \EllipticE \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d}+\frac {\sqrt {-c d}\, \EllipticF \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d}\right )}{2 c d \sqrt {d e \,x^{3}+c e x}}\right )}{d}\right ) \sqrt {e x \left (d \,x^{2}+c \right )}}{c^{2} e \sqrt {e x}\, \sqrt {d \,x^{2}+c}}\) | \(448\) |
default | \(-\frac {3 \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) a^{2} c \,d^{2}-2 \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) a b \,c^{2} d +3 \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) b^{2} c^{3}-6 \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticE \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) a^{2} c \,d^{2}+4 \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticE \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) a b \,c^{2} d -6 \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticE \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) b^{2} c^{3}+6 a^{2} d^{3} x^{2}-4 a b c \,d^{2} x^{2}+2 b^{2} c^{2} d \,x^{2}+4 a^{2} c \,d^{2}}{2 \sqrt {d \,x^{2}+c}\, d^{2} e \sqrt {e x}\, c^{2}}\) | \(594\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.26, size = 158, normalized size = 0.40 \begin {gather*} -\frac {{\left ({\left ({\left (3 \, b^{2} c^{2} d - 2 \, a b c d^{2} + 3 \, a^{2} d^{3}\right )} x^{3} + {\left (3 \, b^{2} c^{3} - 2 \, a b c^{2} d + 3 \, a^{2} c d^{2}\right )} x\right )} \sqrt {d} {\rm weierstrassZeta}\left (-\frac {4 \, c}{d}, 0, {\rm weierstrassPInverse}\left (-\frac {4 \, c}{d}, 0, x\right )\right ) + {\left (2 \, a^{2} c d^{2} + {\left (b^{2} c^{2} d - 2 \, a b c d^{2} + 3 \, a^{2} d^{3}\right )} x^{2}\right )} \sqrt {d x^{2} + c} \sqrt {x}\right )} e^{\left (-\frac {3}{2}\right )}}{c^{2} d^{3} x^{3} + c^{3} d^{2} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b x^{2}\right )^{2}}{\left (e x\right )^{\frac {3}{2}} \left (c + d x^{2}\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (b\,x^2+a\right )}^2}{{\left (e\,x\right )}^{3/2}\,{\left (d\,x^2+c\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________